const { request } = require("express");
const response = require("express");

const app = response();

app.get('/home', (request, response) => {
    response.sendFile(__dirname + '/11-跨域问题.html');
});

app.get('/data', (request, response) => {
    response.send('用户数据');
});

app.listen(9000, () => {
    console.log("服务器已经启动")
})